Is it illegal if you create a backup of an HDD that has copyrighted software installed on it?

This could be anything from legally purchased games and or expensive popular graphics/video editing programs, just as an example.

Is this backup an illegal copy of the original HDD?