Is it okay to let your baby cry?

I don't want to spoil him but I feel so bad when he cries and just wanna pick him up and cuddle him. Today I let him cry for almost an hour and then he fell asleep. Is that wrong?