Yes. Your online assessment can detect changing tabs if you enable “proctoring” under security settings. By enabling this setting, you can ask the assessment taker to share their screen before they start the assessment. Once they submit the assessment, you can check for tab switching by examining screenshots and the screen capture video available in the proctoring log in the assessment report.
Check out this help page to learn more about online proctoring.
You can also prevent tab switching by enabling the “Disable tab switching” setting under “Browser Security”. Enabling this setting starts a countdown timer whenever the assessment taker moves away from the assessment tab. If they don’t return within a few seconds to stop the timer (you can decide how many), the assessment gets auto-submitted.