Most cameras have a Program Mode which will set the aperture, shutter speed and ISO based on how the camera meters the scene. Also known as ‘auto everything’, ‘auto mode’, ‘automatic’. Most cameras will have this mode indicated by a “P” and likely coloured green.
There is nothing wrong with using this mode, but it’s great to learn the settings and make the photos the way you want.