You will need to restart for the changes to take effect

Change to graphic boot

systemctl set-default graphical.target

 Change to text boot

systemctl set-default multi-user.target

To show the current runlevel at boot

systemctl get-default

To list the runlevels

systemctl list-units --type=target