Can I add the membership shortcodes to a template?

Hi,

I am using the membership plugin and I want to edit part of my template files to restrict an element which is pulled directly via the template. Can this be done with the shortcodes restriction?

I've tried to add this, but must be coding it in wrong - I've not added shortcodes before that require a before and after [] and [/] so am not quite sure how to add this to the template.

Can anyone help?

Many thanks,

Matt