Can you take a pregnancy test with the mirena?

Patient: I have the mirena 9 months now, lately ive been going to the loo a lot and being very moody. The last time i felt like this i was pregnant. Will a pregnancy test be accurate with the mirena?