Can you inherit contracts on upgradable contract for the next version of deployment?

https://ethereum.stackexchange.com/questions/145183/can-you-inherit-contracts-on-upgradable-contract-for-the-next-version-of-deploym

Say I use UUPS pattern and want to add ERC721 by inheriting it, is this possible?

i.e.

contract MyContractV1 is OwnableUpgradeable {

and for the next version

contract MyContractV2 is OwnableUpgradeable, ERC721Upgradeable {