In the far future, being an astronaut could be worth it.
Right now, the occupation comes with too much of a cost, such as being unable to eat any real food for long stretches at a time. There is also the issue of your muscles and bones being at risk of constantly weakening from being in an environment with no gravity, which means by the time you come back to Earth you might just end up being skinny and unable to even do basic exercises properly for a couple weeks at least.
It's probably a job far harder than science fiction glamorization would have you believe.