Not in the darkroom, but at the retouching (spotting) table.
If you're working with large format film, you can paint them out on the negative. But that's risky. Most of the time you retouch the print.
I never did any of it myself, but in college there were artists who would advertise their services in the photography department. I saw some of them in ...
This perspective correction was done all the time. It's very effective.
It can throw off the focus of the image on the easel. Stopping down can help with the focus if the "correction" isn't too severe.
What to do?
Small corrections in the negative holder can be used to tilt it in much the same way as a view camera uses shifts and tilts of the lens ...