Filter/pump size

I keep hearing it’s best to oversize your filter.  I have a 18ft/52" round above ground.  Can I use a 21" filter with a 1hp pump?