help I'm new here

How does a opk work is it just like a pregnancy test.  ?