Can I use any SSD in any laptop?
Almost
At this point of time there's roughly 3-4 common SSD form factors. In most cases on any laptop that has a conventional hard drive), a 2.5 inch sata hard drive should work. The 7mm Z height is essentially the standard here and should work. This is a safe bet unless your next PC is a really cheap emmc based one (which has soldered on memory) or you have a ultrabook (which probably has no sata bay). If it has a hard drive, a sata drive will work.
However there's 2 newer form factors which some systems may use. msata is obsoleteish these days and is a smaller, lighter alternative. Its been replaced mostly by m.2 (which has sata and pcie flavours - and not all ports support both). Quite a lot of laptops also have these alongside a traditional bay too, and they're more future proof.