Here's an article about masks: https://www.msn.com/en-us/health/medical/this-is-the-one-type-of-mask-you-should-never-wear/ar-BB13AO2V?ocid=spartanntp
Surgical masks are best, but if you don't have those, then a homemade cloth mask is better than nothing.
The article advises against one particular kind of mask: N-95 respirators with valves, as those only filter incoming air and not outgoing air, so you could be inadvertently exposing others with your exhalations.