Unprotected sex and iud

Star
So I had unprotected sex yesterday and my boyfriend ejeculated in me I am now worried I may be pregnant would the iud protect me ?