Can I go to a job interview with shorts?

My mom has told me that I shouldn’t go to job interviews with shorts on but with with pants, because it’s unprofessional with shorts, is it true?

Can I go to a job interview with shorts?
Post Opinion