Yes.
There are no inadmissibility provisions under the Immigration and Refugee Protection Act that would prevent foreign nationals from travelling to Canada to give birth. In addition, non-residents giving birth in Canada is not considered fraud under the Citizenship Act.
Ref: https://www.canada.ca/en/immigration-refugees-citizenship