Target a specific section

is it possible to target or render pages from any directory

such as the following when blog is a directory

{% for page in section['blog'].pages %}

thanks to some other answers

{% set mysection = get_section(path = "blog/_index.md" ) %}

{% for page in mysection.pages %}