Done it before, it works.

On vehicles with filters, I'd maybe change it afterwards. Most newer vehicles just have socks on the pump now anyway.