Yes, no problem at all if you have married to the H1 before your entry.
If you got married after you are in US, do spend time to explain so you can still have a good chance of approval.
If you got married after you are in US, do spend time to explain so you can still have a good chance of approval.