Yes, to direct your attention on something is "to dwell" on it. Like saying "don't dwell on this question for too long". But it also means "to stay or reside somewhere". Like saying "a bear would like to dwell in a cave". It's the verb form of the noun "dwelling".
Don't dwell over him... You're young.
Don't dwell on the past.
Never dwell in the past.
Because your using the word dwell