Changing company in current scenario with 2 month pay slip

Hi Recently I came to US with H1B visa. Got 2 month pay slips and now I am planning to switch company due to some personal reasons. Is it okay to take this decision at the present scenario ? I have visa till 2019. Whether it may affect my visa ? Please suggest