It sort of helps cancel it out at the time if I'm listening and on a computer. But as soon as that ends, the ringing continues.
I can count on one hand the nights I've had restful sleep, and one of those was after got home recovering from a surgery. Who knows.