The answer is: Yes, if there is no other alternative. But: Better not get used to it and go looking for effective and certified alternatives.
In the early days of the pandemic, due to the lack of protective medical equipment, there was a boom of people who started making cloth masks from their homes; either in a personal capacity or with altruistic intentions to help protect others. But although experts advise their use “first of all”, the truth is that they do not stop carrying certain risks, since the materials with which they are usually manufactured do not comply with any certification and the false sense of security of those who use them can have dire consequences.
We must always demand masks that comply with official certificates if we want to protect ourselves and others from covid-19. Let’s act with common sense.