If it's the standard screwfit connector, yes though actually finding an antenna for sale really cheaply separately may be a challenge.
Probably the cheapest solution would be to find a secondhand router with the same antenna type. Obviously you could buy a secondhand wireless adapter instead, but routers issued free by internet providers tend to turn up frequently in the garbage due to user churn or in garage sales, thrift shops, e-bay etc.