As long as you install them in the order oldest to newest then yes you should be able to dual boot.
Both operating systems will be able to see the other partition, but they won't interfere unless you kick something off yourself.
Being a security engineer I always have to advice against installing XP or Windows 7 since both have been out of support for some time with countless known and unknown vulnerabilities you're practically inviting someone to attack your system. If you absolutely need to use them I would keep them off the network as even malware that is downloaded on a newer system or even Linux could seek out and exploit these systems if they are connected to a network.