There was a time around 2018 before the move to RandomX where you could mine XMR with GPU's profitably. Building a mining rig from scratch just to mine XMR is no longer feasible. If you have high end gaming rig or workstation, you are better off using the hardware you already have during idle times to mine a small amount.
Even with a AMD EPYC 7T83 64-Core Processor (highest hashrate according to
https://xmrig.com/benchmark), and paying nothing for electricity, it would take about 8 years in a best case scenario to pay it back.