Okay, check it out...
Yes, the drum machine would know when to play because cubase triggers the notes when they come up in the song exactly where you recorded them to (or pencil'ed them in...etc.) still with me?
If you hit record on the cubase midi track, then start hitting your drum...