I wear a cap when I'm outdoors and I've done this in the past. I don't think the hat makes any difference whatsoever. However, I will also add whenever I happen to sweat too much with the hat on, I always shower, reapply minoxidil on my hair at the first opportune time when I get home.