I have a question regarding my bathroom plumbing. I have a 1.5" pipe coming out of the wall which goes into a p-trap. I bougth a new vanity and would like to raise that ptrap up a bit to be inside of it. Would it be possible to put an Elbow up from the 1.5" pipe, then another elbow going back out and into a p-trap. When I think of it visually it makes sense, but would the water drain okay?

So in summary. Pipe out of wall, elbow pointing up elbow->elbow pointing back out -> P-trap -> popup drain.

Thanks for any assistance here.