Yes, 2N7002 is the industry go to for cheap signal SMD NMOS. BSS84 about being the PMOS "complementary" part.
And in the THT world, BS170 and BS250 may serve similarly.
Also note there are heaps of different flavors of 2N7002, so you do not always get the exact same spec for a part. But in generic switching applications, they well may be interchangeable.
Main difference being often the on state resistance. May be anywhere between 2 and 10+ ohms.