Yes you can. You might want to cancel your h-1 appointment request and apply for a H-4 visa request.