Yes. It is correct. You need to put some kind of punctuation at the end of a sentence, either a period or an exclamation point.
You use this pattern when there is a list of people who might have done something, and you are discovering or identifying one of them. If you see me break your vase, you say: "You broke my vase!" If you discover a broken vase first, and later realize that I broke it, you say "It was you who broke my vase."
One can imagine a grandparent saying "I love all my grandchildren, and I remember things about every one of you. Why, it was you, Ruthie, who drew pictures on the wall with a marker. And it was you, Charlie, who tried to flush a baseball down the toilet. And you, Mary, it was you who broke my vase."