Can pipe dope be used on water lines in a vanity
no - pipe dope can pretty much be used everywhere.  its not necessary though on anything but a thread to thread seal.  most vanities nowadays use flexible supply lines that have compression type fittings at either end with a rubber seal in them.  its not necessary on that connection at all.