Just how rotten is your floor?
If it is just a little soft and it feels 'spongy' when you walk on it, your proposed repair will probably be fine for you. A less drastic repair might even be feasible.
If the floor is rotten to the point where you can push a screwdriver thru it, a more involved repair is needed.
--Dan Meyer