H4 filing from Canada

Hi, I am currently on H1-B and my fiance is in Canada,
We are planning to get married in December 2023, I am planning to get married beforehand (Court marriage) before that to start my H4 process,

I have some questions:
1- Can I get married in Canada and then apply for H4 in Canada, She does not have a USA visa. Will it be okay? or do I have to stamp in India only ?

Any help would be great