Had intercourse two weeks ago will a pregnancy test work?

It will depend on when you ovulated. Home pregnancy tests work best when used 14 to 16 days after ovulation.