I believe so. After 5 years you can take out what you contributed but other than that 59 1/2 years of age. There are other exceptions I think like death, college, house, maybe medical bills, etc.........but I have never looked into what all is covered.Don't you have to wait 5 years before you can draw from it?
I do think they allowed people to take it out also in the pandemic.