Mask shortage is a red herring. I can tie a bandana or a scarf around my mouth. If it reduces my chances of breathing in a cough droplet by even 5%, that’s great. Why not?
Go for it! Just keep in mind that the benefit there is pretty minimal. Probably not quite zero, but we're talking way less than hand washing. And if you touch your face more as a result of wearing the mask...
That's not to say do or don't do it, just be careful. Handwashing and not touching your face are the single most important things to do.
From https://smartairfilters.com/en/blog/diy-homemade-mask-protec...
> Data shows that homemade masks made with a single layer of cotton clothing, or a tea towel can remove around 50-60% of virus-sized particles.
Masks are only effective in a fairly immediate radius: someone coughs, that droplet goes a little ways then falls on a surface. Medical professionals are in that immediate radius all the time, that's why they need the masks. People are usually not sneezing directly on each other, so that's less of an issue. What IS an issue is the viral particle that is now on a surface. You touch that, move your hand to your face (perhaps to adjust your mask) and bingo you're infected. Washing your hands obsessively is WAY more useful than any mask.
Most of the time in medicine masks are used to stop the medical professional from contaminating the patient, not the other way around (that's what you see in surgery). If you're with someone sick, it would be good to give them a mask, they'll spread fewer particles that way.
TLDR: Masks are minimally useful for the broader public, very useful for those directly in harm's way. Don't buy masks unless you're sick, or someone close to you is sick. Let the supply chain work for medical professionals who actually need them.