Upgrade from AX 2012 R3 to D365

Currently we are having around 15 partitions under AX 2012 R3. Is it possible to upgrade this to D365 with all existing data?

15 partitions means > 15 legal entities ?