Yes. You must use a commercial photographer to take your passport photo. You need two identical photographs, which must have been taken in the last year.
Photos for child applicants must show the child’s head and shoulders. If the parent has to hold the infant for the photo, their hands and arms must not be visible in the photo. The Canadian passport authorities are not strict about the expression on passport photos of babies e.g. if the child’s mouth is open or closed.