How to extend PVC vent pipe?
Yes, that will work; coupling, additional length of pipe, adhesive kit, preferably sandpaper to clean the surface before gluing, saw or appropriate-sized tubing cutter if you need to cut the pipe section to length.

I presume you aren't going to have to redo the flashing around the wall or roof pentration; if that has to be disturbed add supplies to deal with that.