You will need to restart for the changes to take effect
Change too graphic boot: systemctl set-default graphical.target
systemctl set-default graphical.target
Change to text boot: systemctl set-default multi-user.target
systemctl set-default multi-user.target
To show the current runlevel at boot: systemctl get-default
systemctl get-default
To list the runlevels: systemctl list-units --type=target
systemctl list-units --type=target