Can you programme the selected page template to display block patterns automatically?

Can you programme the selected page template to display block patterns automatically?