727 and 904 valve body swap?

Physically yes. You can bolt a 904 VB into a 727 Trans & vice versa. The parking pawl rod has to be changed because they are different.
I would be very careful doing this, as each valve body is calibrated differently dependng on vehicle application & may present unwanted shift characterstics.