Yes, it's very easy, I do sh** like that all the time.
After a fresh installation of an OS, and sometimes after some customizing, I make a compressed image of it's partition.
Then when I need to test something out, and not worry about screwing up my nice "day to day" installation, I make a new partition in free space on my drive, load an image of the OS I want to test in, and boot it up, all of this only takes less than five minutes when an image is already made.
Then hack away at this test installation. When I'm done, I wipe out the partition by writing zeros to every bit and have the space available for more testing with any of the many OS's on my drive.
I use bootitng
which gives me this wonderful advantage using only primary partitions, I have at least twenty of them on average, which makes it easy to set up a testing environment at random on any part of a drive with just a couple clicks of the mouse.