Yes. In fact, even running a video card in a 4x slot (again, assuming PCIe 4.0) results in only a modest (5-20%, depending on what you’re doing) drop in speeds.
I haven’t done a ton of training but everything I’ve heard and read indicates that PCIe 4.0 8x provides enough bandwidth for just about any application. You might see a negligible drop in performance, but no more than a few percent.