Could lightning strike you through glass (window)?

When it’s raining or storming outside, could lightning strike you inside house through window glass if you were close to the window?or are you safe when you’re sheltered?