Yes. Simply invite your friend to join a custom match where you both select which heroes to use and compete against each other on a private map.