should be possible yes
try this:
Put this in the Onstart of your app, or even better to the OnVisible of a screen:
// Replace 'YourPassword' with the actual password or fetch it securely
Set(correctPassword, "YourPassword");
This on the onselect of the button:
If(
TextInput1.Text = correctPassword,
Navigate(TargetScreen, ScreenTransition.None),
Notify("Incorrect password", NotificationType.Error)
);
Replace the Textinput1.Text with the name of your Textinput control
Let me know if my answer helped solving your issue.
If it did please accept as solution and give it a thumbs up so we can help others in the community.
Greetings