Yes, same pins, same heater current, similar voltage drop...the big differences are the max current, max AC voltage per plate and PIV. Generally the 5Y3GT is a preamp/ small amp rectifier. The 5R4GY for current hungry amps.
What are you looking to accomplish?
Cheers,
Geary