You should always take precautions even though you both are married. Your putting your spouses at risk. If you are asking about HIV testing as a precaution then yes you had a risk and need to test.
Hello,
Unprotected penetration poses a risk of HIV transmission.
An HIV test at the right time will give you accurate results.
A 4th generation test should be done at 4 weeks post exposure and a simple HIV test at three months post exposure.
Keep calm and test at the right time.
Take care