Can a doctor tell if you got pregnant by stopping birth control?

No, there's no way to tell whether a woman was taking birth control when she got pregnant (unless she is pregnant with the implant or IUD).