Yup, people often state and or talk about JPGs as if you cant edit a JPG. That is total rubbish. You can do lots with a JPG just as you can a RAW. As has been said though, a RAW just gives you a little more headroom in most departments. If you are after the best poss you shoot RAW. The gains are small but they are there.
There is certainly nothing wrong with shooting JPG. A lot depends on the camera of course. Most modern cameras produce great JPGs. If you do shoot JPGs though I always advise making two lots on your PC. Then at least you always have the originals too. I prefer RAW but its a matter of more keeping the negs for me. A raw in itself is useless, so they still end up as JPGs for the most part anyway. There is another side of things too. If you have a good program, and you edit JPGs you could argue that you may as well shoot RAW anyway. Then there are arguments again for shooting in JPG. Faster and longer frame rates, auto lens corrections etc so it is all swings and roundabouts. The bottom line is you shoot what suits you and you are happy with. Once you know all the pros and cons it is easier to decide.
It is no different than choosing aperture or shutter priority in your camera. They are just choices or tools that can be used.