yes, you can, but only if you would able to switch to another valid visa before you go for applying. For example, if your spouse is on H1, if you switch to H4, then you have no problem to apply.