Maybe, maybe not. 74F08 (F stands for "fast") have much faster edges and consume much more current than the 7408. The current probably won't be a big deal, but the fast edges can sometimes cause problems or even EMI (electro-magnetic interference).
That said, if it was me, and I needed a 7408 and only had a 74F08, I'd give it a try. I can't see any harm in it (unless you damage the PCB traces wile desoldering/soldering - be careful).
Good luck!