Yep.
But for other questions, make sure you watch out for curves where the domain must be restricted in order for the inverse function to exist ie: y=x^2 can only have an inverse for the right half or the left half, but not both at the same time.
Otherwise you have an inverse RELATION not an inverse FUNCTION.