Need help lining up click track with MIDI

Pretty new to cubase here.

I read a lot of posts about problems people are having with midi recording, but I’m not sure if this is the same issue or not. I tried searching for “midi click track” and all three words were apparently too common to be used as search terms.

I have an existing midi file (created using Finale) that I drag onto a midi track in cubase. I want to use that as the accompaniment for a recorded performance. If I listen to the midi track and play along, everything lines up fine. If I try to use a click track, the MIDI seems about half a beat ahead of the click track (or anything I record using the click track.)

Is there a way to get these to synch up?

Thanks.