Technically speaking yes you can have both Windows 7 and Windows 10 on one device; however, you will need two licenses to do it legally.
The easiest way to dual boot multiple versions of Windows is always install the oldest version first. When you install the other way the older version doesn't detect the newer version and you will end up having to repair the other install.