5.0 Pdf Download 'link' — Pcie Specification
A: Yes – a Gen5 device works in a Gen4 slot (at Gen4 speed) and vice versa.