Pregnancy test

Is it possible to get a false positive? My pregnancy test says positive but I went to the gyno and she said there's no baby. She said it's rare for that to happen.