Yes, that appears to be another good solution to the castling trickiness! And probably how you assume castling works in Chess960 if you weren't given the rules.
But that's the problem with Chess 960 - that's not how you castle at all in that variant.