Would c++ work with this?

I might have titled this wrong. I was wondering if c++ would be able to check the time on the computer and when the time on the clock says.. lets say… 4:30 pm it plays a audio file, or even just opens up a word file. If not what would …