In D&D 5e roles overlap a lot. A ranger can be a capable healer, a fighter or a cleric could disable traps, druids are excellent scouts, bards could... well could be anything from healing to diplomatic duties to thievery, etc.
Sure, but they don't do those things very well. That's the problem you get when everyone can do (a little of) everything. Nobody does anything particularly well.