When I installed Ubuntu 22.04.4 on a system of mine just now, with secure boot enabled, I opted to enable third party drivers, and left "Configure secure boot" ticked, and entered a password.
(illustrative screenshot borrowed from another question about an earlier Ubuntu but the window contents are exactly the same even though the window borders are old style now)
After reboot, I did get a MokManager menu where the default option was to continue booting, and I wasn't prompted for the password I set there.
What I am unsure about is whether that password needs to be stored somewhere for future driver installations throughout the lifetime of this Ubuntu installation, or whether it's just a one-shot password that's used for the next boot and I'll be prompted for another one if something else needs it for a later kernel module installation.
Closest question and answer is this: https://askubuntu.com/a/815614/1242564 but it doesn't answer my precise question of whether the password needs to be remembered in the long term.
Also can someone suggest a package I might install from APT that would test this? e.g. would VirtualBox do it as IIRC it has a DKMS portion to it?