It seems that in depth is like two separate words like
I have studied this subject in some depth.
But in-depth is like one word and an adjective
He has an in-depth knowledge of the subject .
Am I correct? Would you provide more information about their difference?