Yes.
You will notice there are cameras with lenses and others that do not have them. These include :
● Compact cameras ● DSLR cameras ● Mirrorless cameras and ● Action cameras Each of these differs from the other due to the size of lenses or whether the lens is interchangeable. Some are dedicated to one function and those that can take photos as well as videos.