there's nothing wrong with shift work, and there's nothing wrong with the graveyard shift (for people who want that job), but there is a LOT wrong with alternating day and night shifts in the same week every week, and nobody should agree to do that. (perhaps if you are in your early twenties you feel like you can handle it, but I'm not sure that's a good idea either)
I tried graveyards and swing shifts in my twenties. I only did it for a year, but it wrecked my sleep schedule for years afterward; I struggled with insomnia because of it. Not sure there is any age where this works.
Some people can handle it better than others. I'll never do it again though.
some of the people I know who've made it work, and I'm not recommending this either, are "hardworking ambitious immigrant" types who do it to hold down two full time jobs. tends to be in industries where the overnight shift is a quiet shift rather than something like running the same factory at full tilt overnight.
My natural rhythm makes me a nocturnal being, while the society works 9 to 5. Once I realized this, it became obvious why I feel like fuck all the time. Can't wait to retire.