I'd say both yes and no, for both work and relationships; it's mostly about figuring out which people and jobs suit you and are good for you instead of chasing what you want but can't have.
Nice guys have no luck with a certain kind of girls and certain types of jobs, but "bad boys" also have rotten luck with certain girls and jobs as well, the difference is that the "bad boys" often have the jobs and relationships that are more in your face, leading to the belief that they have vastly superior skills/luck/insight or what have you, into both areas, when in reality they're just better at flaunting it (and have a bigger need to).
Also, the age old belief that "bad boys" are covering up insecurity with behavior patterns holds quite a bit of truth and they actually finish last when it comes to facing this reality and dealing with it and it can severely affect your ability to hold down a job or maintain a relationship.