Generally, there is no requirement that you wait to switch employers after you become a permanent resident. However, the USCIS may make this an issue when you apply for Naturalization if they suspect that the employment was purely meant to obtain your Green Card.