How do you hold a baby?

So I never have been around kids much in my life, I feel like they get squirmy and upset when I hold them. I'm expecting my first baby and am afraid he won't like me holding him. anyone else felt this way? Any tips on the right way to hold them?