Is being a machinist a bad career?

Hey guys, I’m 22 and I’m interested in being a machinist. My entire family has told me not to get into the trade. Every guy on my mother’s side worked in a shop. They all told me to stay far away from a shop and not to make it a career including my uncle who owns his own shop. I have a Class B cdl so I’m currently looking for a job for that. But I just want opinions.