Yes, if you have entered Canada on a visitor visa, and then you get married, after you are married, while you are still in Canada you can apply for Permanent Resident.
When you send your Permanent Resident application, at the same time in the same package you include an application for an Open...