When booking you can definitely do as you describe. There's some extra taxes to pay. You can use the "multi-sector booking" online to check the prices.
To change it after ticketed will depend on your ticketing rules and there's probably change fees if it's a lower Y class. So you can only find this out by calling reservations and asking for the costs to change.