That depends on your settings.
When you use an iDevice with Touch ID, and enable Password Autofill in Settings - Touch ID & Passcode, you also have to use your fingerprint to fill in passwords automatically. It’s similar for devices with Face ID.
Apple says:
View attachment 86353
iCloud security overview
As long as no one else knows your passcode, they are safe.