Yes, ProtonMail allows switching between the free and paid versions. Before downgrading, you’ll have to make sure that you give up previously set up premium functions. This includes custom domains and addresses. Once you do that, you’ll be able to reset it to the basic free version. If you want again to set up custom domains, you’ll have to subscribe anew.