Not by default without custom code. An alternative solution is to use a plugin. I tend to use https://wordpress.org/plugins/members/ and then wrap my content in the shortcode for the user role (https://members-plugin.com/docs/shortcodes/).
i found this on the official guide but i can't get it to work for custom roles!https://formidableforms.com/knowledgebase/php-examples/#kb-show-content-based-on-current-users-role
Please login or Register to submit your answer