Depends...of course

If you drilled in center of 2x6..you will not get much length on your pieces...if drilled toward front of 2x6 stud..will get longer pieces (use stud guards if you drilled forward holes)
Usually, you cannot cut studs, so you would end up installing that pipe with 2 or 3 couplings...PVC can flex a bit so try a longer piece between two studs and see just how long you can fit in...but do not overdo stress to pipe as it can crack ballistically and can be dangerous (especially if just brought in from cold weather).
Another way would be on a knee wall or similar...you could drill additional holes through all the studs, and then from the end of the wall slide pipe back in through the holes to where you need it...COUPLING FREE!!
And do be careful with those self feeder bits...brace the drill and yourself in the direction the drill will bind if it does bind...that make sense??
If this was helpful, please RATE THIS ANSWER by clicking on rate this answer at upper right of this box or at bottom of this post. Thank you