Yes, you can enroll a MasterCard/Visa Card that does not match your registered name in GCash. However, GCash advises cardholders to be very cautious when sharing card information to others to avoid identity theft, account takeover, etc.
Cash-in via MasterCard/Visa