Can I take the 40-hour MI real estate license course online?

Yes! You can certainly take the 40-hour Michigan real estate salespersons course online.
In fact, most students opt to take the course online.
The online course format allows you to take the course at your own pace and is usually offered at a better price.