Can I use online check-in if I am travelling with an infant?

Yes. Online check-in is possible for the accompanying adult passenger.

Related questions

What are the ticketing rules for child and infant passengers on Emirates?
Can my child travel alone on an Emirates flight?
How do I link a Skysurfers or a Skywards minor account to my Emirates Skywards account?