You are partially wrong.H4 visa allows the dual intent,which means you can have the immigration intention.