I'm retired now, so have no 'working' opinion on this. However, I suppose that if the job you held required working nights then it would have been explained to you before starting, so you would know what to expect. If after starting you find that working nights is not something you enjoy, then it would be best to look for another job - don't just quit though as it's easier to move from a job to a job rather than being unemployed as there may be hundreds chasing a job you may enjoy doing.
Shift work is the norm for a lot of professions and some people prefer working nights. For me personally, if I were not retired, I would prefer working days as I used to work nights and found myself waiting all day to go to work.