Custom Code (Which plan I need?)

Can I add custom code if I purchase a workspace plan? Or do I need a site plan?

It is really confusing because in site settings under custom code tab it says you need a site plan. But on pricing page, custom code feature appears under workspace plans.

You get a workspace plan to enable custom code on projects and add the site plan you need for hosting your site.

I was confused too. Now I found out that the workspace plan is all you need when you are building your site. I have only a workspace plan now and i can add custom code on all of my sites. When I finish building my staging site, I can cancel the workspace plan and just add a site plan to host my site with custom code.