Yes, though the free option is limited to a rotating pool of heroes rather than the entire roster.
That model was introduced when the game moved to free-to-play, and it works the way most such systems do: a selection of heroes is available at no cost, and the rest can be bought or accessed with a paid account.
If you only play occasionally, the free pool is genuinely enough to be competitive, since the heroes rotate and you are not locked out of any role for long.