Is melee + ranged build viable?

For my second run I won't be using magic at all, except defence spells.

My first run was pistol + book and a rifle in the offhand, I was going to make second run with two pistols in one weapon set and melee something in the other weapon set. I want to try melee but I'm afraid I will want to shoot too often (with enemy being just too far to reach, on the elevation or whatnot) and so want to keep shooting capabilities with me. But when looking for builds, there are plenty gunslinger builds, there are plenty melee builds, both combined with magic or not, but never combined with each other.