Congrats on your new puppy! You are probably feeling all kinds of emotions like joy, love, happiness and PANIC! Its a lot of work having a new puppy.
Many times puppies are used to being with their mom and litter mates and they learned that when they are away from them, if they cry and whine, mommy will come and get them. The puppy can learn to love his crate, but you have to set it up that way. All good things should happen in the crate, like feeding time and treats. Praise them when they go in then shut the door for a few seconds and let them out. Practice this a bunch of times before leaving them in the crate for a long period of time. Make it a great thing to be in the crate! Build up to longer periods of time in the crate.
When you do leave your pup in the crate at night and they whine remember that an important rule is not to let your pup out of the crate when he is crying. Only open the crate when he is quiet and calm. This means you have to wait for a moment of silence before letting your pup out. Get your new pup on a schedule so that you know he is not whining because he has to go to the bathroom. If you know all his needs are met and he continues to cry, you need to ignore it. That is the best thing you can do and after a night or two your pup will realize that whining will not get him out of the crate. Also, having him on a schedule will ensure that he will know when its bathroom time and training will be quicker.