Yes, one can apply for H-4 visa while H-1 visa is under process. I have seen both outcomes for this - at times the H-4 visa gets approved w/o any issues; in other instances officer puts the H-4 in 221g pending processing of H-1 221g. So you can try your luck.