Yes and no
They are both catecholamines, a specific type of chemical class.
In the body, there are different type of receptors in tissues which bind catechols with different effects. Dopamine and doubtamine have different affinities for different receptors and thus can have different effects. Kind of like different types of baking sugars...They are all sugars but are used for special purposes and functions.