It is - there is actually a nice tutorial showing how handy the Clock can be:
It is not a good idea to start scanning when the Screen is initializing.
Here is a template Project, it does not deal with the Android 12 permissions but it shows how to use a Clock to give enough time for the App to find all available devices.