As far as I'm aware, no class has been locked on being able to use ranged or melee weapons exclusively since 2e - they weren't in 3e, at least.