Yes, the Dungeon Master’s Guide offers an optional rule on p. 267 that includes firearms for multiple time periods.