Yes, and the photo has to match the normal specifications - straight on, no expression. It's no easy task with a 2 year old, much less a 2 month old, speaking from experience.
https://www.canada.ca/en/immigration-refugees-citizenship/services/canadian-passports/photos.html
Child photos must...