Can we apply H4 visa application when the H1B application was pending or in progress.?
Yes, but doing so will result in a mess that will need to be fixed.