It depends on what are your Courier's ideals and morals. There is no "right" way to reach the ending, just go with your character's ideas!
You can't follow the Wild Card
and the NCR path: once you reach a certain point, the NCR will not like the fact that you're working with Yes Man. And it makes sense, because you'd be gathering assets that they want for the war. You can, however, be in an amicable (or at least neutral) relationship with the NCR even if you go Wild Card, provided you don't actively work against them.
The Wild Card path does include the option to enroll the help of other factions, though not every one you meet in the Mojave. You will be told which ones you can work with.