Can a monster take Legendary Action at the end of a pc who…

Can a monster take Legendary Action at the end of a pc who is surprised?

can a monster take legendary action at the end of a pc who is surprised?Yes. — Jeremy Crawford (@JeremyECrawford) September 1, 2017