Yes. The Steam and boxed versions share the same multiplayer servers, so there's no barrier between you.
Plenty of people run mixed groups without issue — retail copies and Steam copies drop into the same lobbies as normal.