It kinda goes both ways. If you join the vampires, even if you're doing it for good intentions to stop Harkon from within, the Dawnguard will still send squads to hunt you down. But if you join the Dawnguard, they let Serana in without much protest, and the most they do if you have Serana turn you into a vampire is get annoyed at you.