Yes, by running two separate accounts and logging into each — though "at the same time on one account" is not permitted.
You need two accounts. Launch the game, log in, then start a second client instance and log in with the other account's credentials. Both can then be played by switching between windows.
Performance suffers, particularly with background applications such as instant messengers running, so closing everything else first is worthwhile. Multiboxing of this kind is permitted by Blizzard's terms as long as you are not automating input to one character from a single source — using third-party tools to synchronise keystrokes across clients is where it becomes a violation.
Two accounts means two subscriptions. If your goal is simply to have a second character, one account with multiple slots does that at no extra cost.