Photography means an art or process of producing pictures by the action of light. To get a good sharp picture, three main elements which needs to be considered are Aperture, Shutter Speed and ISO.
Exposure = Aperture + Shutter Speed + ISO
Generally DSLR beginners let their cameras in Auto mode to determine exposure. The camera won’t always get it right and you may end with undesired (underexposed or overexposed) picture.