Yes, John McGinn represented Scotland at youth level. He played for the under-19 team in 2013 and 2014, and for the under-21 team in 2014 and 2015. He made his senior international debut for Scotland in 2016.
Unleashing the Magic of John McGinn: A Quiz Celebrating Scottish Football Phenom