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?
How do I use online check-in?
What are the time limitations for booking online?