Yes, you can travel elsewhere.
IRCC advises to let them know via webform to avoid receiving a test invitation while you're outside the country. Or, that's how it used to work before the pandemic...
Also, obviously, my answer above is strictly related to your citizenship application, you already know all the caveats for the international travels during covid times already!