Naproxen has calmed me down

I just took a naproxen because it’s an anti inflammatory, around half an hour later the redness it mostly gone and I’m hardly itching. Could taking anti-inflammatories help that much?