A marriage is recognized in Canada as long as it is recognized wherever it was performed. So even if it is not recognized in your home countries, as long as it is recognized wherever it was done, Canada will accept this as the basis of a family class spousal sponsorship.