Home mining with a gaming PC has become economically unviable for the vast majority of cases. But I want to add something that others haven't really touched on enough: it depends hugely on where you live. If your electricity costs €0.15/kWh, that's one thing; if it costs €0.40/kWh, it's a completely different story. Before doing any math on profits and losses, check exactly how much you're paying per kilowatt. A gaming PC easily consumes 400-600W when pushed, so do some multiplication considering 24 hours a day times whatever rate you have on your bill.
People who say it's not worth it are right on paper, but there's a detail they're missing: if your interest is learning how blockchain technology and mining actually work rather than making money, then it's a different conversation. You can always set your PC to mine only when you're not using it for gaming, limit the power and see what happens. You won't make anything significant in economic terms, but at least you won't trash your hardware and your bill will see a smaller bump. The wear and tear the others mentioned is real though: GPU and power supply suffer a lot if they're constantly pushed. Keep in mind you might shorten the lifespan of the most expensive component in your setup.