Yes you can but there is nothing to do with your PR eligibility. Because you girlfriend or future wife doesn’t have Canadian residency. You also check this website: https://www.google.ca/amp/s/www.canadaupdates.com/2016/12/07/marrying-while-on-visitor-visa-in-canada/amp/