Can I test linearity and homoscedasticity between a ordinal and scale / continuous data?

#1
I want to use a scatter plot to test the linearity and homoscedasticity of my data set.
My dependent variable is depression score which is continous and scale data.
Can I test the linearity between depression score and categorical variable such as gender (1=female, 2=male)?