is it good to change company now with H1 B till oct 2019?

I am working with Company A and have valid visa till Oct 2019. Now i am back to India.Is it suggestable to change the company now? Will there be any problem in H1 B transfer?

I am also in same situation. let me know.