Yes they did .
International law states hostage taking is a war crime in armed conflicts , there doesn't have to be any declaration of war on either side .
"Armed conflict" is the criteria for when acts are war crimes , the Armed conflict started when Hamas fired its first shots on October 7 th and thus its hostage taking were war crimes