I'm afraid it's not a good idea, water condensation cannot leave, you'll probably invite mold..
Many people have these mason bee hotels, it's not great.
Mold is a problem if you don't clean them.
Parasitic wasps hop from nest to nest laying eggs in them. It used to be a lot of work for the parasitic wasps finding all these different nesting sites when nature was still natural and chaos abound. Now everything is being ordered to suit humans and cleaned up, no more space available for natural nesting sites.
So the way forward is these cleanable bee hotels you can take apart, where the cocoons are being gathered in winter to stay in the garage or some place without frost.
They're for sale and people make them.
Here are some interesting links.
https://crownbees.com/blog/movingday/
https://thehoneybeeconservancy.org/2017/12/09/bee-hotels/
https://www.youtube.com/watch?v=KUPgYjcCaDI