Yes it does, depending on the size of the camera files your camera takes, it can vary by camera make and camera model. Some cameras can also save the photos in different files types and sizes depending on the settings you set the camera to record at. My Canon camera can record files in small, medium or large. The large just record a much larger photo size. (number of pixels wide) x (number of pixels high). MY camera can also record photos in two formats. JPEG or RAW or both JPEG and RAW at the same time. JPEG files are small and only save the photo as it was taken in your camera settings at the moment the photo was taken, that means the exposure (brightness/darkness), color settings (Vivid, normal), white balance (type of light like daylight or under light bulbs) and these are all that is recorded into your JPEG image. The JPEG files are smaller than RAW. Saving photos as RAW allows you to correct camera setting mistake later on your computer because it records much more information in the file and your can change the photo exposure, white balance on your computer later with photo editing software. RAW files are much bigger JPEG. So the number of photos that fit on a card can vary greatly depending on camera, resolution size and file type. I shoot with a Canon 5D Mark IV professional 30 megapixel camera and I shoot in RAW large. My Raw files are big, 42 megabytes for 1 photo that is 42 million bytes (42,000,000 bytes) . If I recorded this same photo as a small jpeg it would only be less than 2 Kilobytes (2,000 bytes). This is a 64 Gigabyte card, that is 64 Billion Bytes (64,000,000,000 bytes) of recording space. This is a BIG card it will hold a lot of RAW photos for me and an insane amount of small JPEGs. To estimate how many photos your camera can put on this card, divide 64,000,000,000 by the size of your average file. If you were a professional wedding photographer you probably would not fill this card in a one day wedding shoot. This is a BIG card. But I always carry extra cards just in case.
Now if you are shooting video, you can fill this card fast, I can fill it in less than 30 minutes shooting 4K video. Video files are huge and yes the type of camera you record video with can also vary file size. So the amount of video record time can vary by camera and file type, HD video vs 4K video also greatly effects file size. Hope this helps.