Hello,
No, there is not a block in our library that will automatically do this. What your are looking for is a phase-locked loop component, and if you search our online documentation you will find several examples in our pre-built demo models. Good luck!
Kris