This is right on. It is the 45% - 35% - 20% rule of thumb. You can also calculate your lean muscle using body fat percentage and use that as a rough guide, for example 150lbs @ 15%BF would be about 130 grams of protein a day, 78 grams of carbs and 13 grams of fat. (protein = .4, carbs = .4 and fat = .9 x you lean muscle weight)
It is hard to get your protein and hit your fat mark so keep the foods you eat in a 3:1 ratio with protein to fat minimum to start and then go for 4:1, also by sticking to foods with those ratios you will almost certainly hit your carb mark!
Remember these are just guidelines and not hard fast guarantees, every person is different due to body type, size, metabolism etc..