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.