Correct, however it's safer to use the direct translation if you're talking about a husband/wife specifically.
"Esposa" and "esposo" are wife (esposa) and husband (esposo).
'Mujer' just means "woman".
"Marido" is exclusive to 'husband' (it's masculine; no feminine variant exists).
However, if you mean this in The sense of a couple (Mi mujer = My woman/Mi marido = My husband), then yes, these terms are relatively similar to each other.