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?
Do I need to purchase flight rewards for infants?
Are there additional baggage allowances if I’m travelling with an infant?