No, "happy ending" massages are not legal in Mexico. The country has strict laws against prostitution, and such services are considered a form of prostitution under Mexican law.