Of all the words your dog needs to learn, none is as important to his safety and your sanity than simply, "No!" When you bring a puppy into the house, it is imperative that you teach him the rules of the house, including what he can and cannot do. After all, he is just like a kid, he has no idea what the rules are until you teach them to him. This should be one of the first commands you teach your dog.
It is also one of those commands the average dog tends to learn as he goes along. Think of it this way, if you tell your dog "No" often enough, he will figure it out on his own over the course of time. But, if you are like most dog owners, you need him to learn this particular command sooner rather than later.
There are many reasons why you need to teach your dog to obey the 'no' command. The most important of these is for his own safety. For example, if your dog suddenly gets it into his head to run towards traffic, telling him 'no' should bring him to a dead stop. Or, maybe your dog is headed to the litter box for a snack--being able to respond to the 'no' command can put an end to his naughty nibbling.
However, you should not have to yell at your pup to get him to follow this command. You need to work with him until he will happily respond to this command in much the same way as he does any other command. While this is a basic command, it is also one that will take a while for your pup to master and one you will use with him all the rest of his life.
You can teach any dog to respond to the 'no' command, regardless of age as long, as you are willing to put in the necessary work. Younger dogs tend to learn faster and some older dogs "forget" how it works. Since this is one of the first commands you will be teaching your pup, there aren't any real prerequisites. But you will need a leash and a large supply of your pup's favorite treats. The rest is all up to how much time and effort you are willing to put into his training.