Not necessarily. The details of the specific circumstances matter.
Using human shields is also an explicit war crime, but you keep avoiding that topic.
How many times do i have to say Hamas committed crimes. I do not defend or justify their crimes.
What is interesting is that no one here seems to deny Hamas are criminal, no one has tried to justify the crimes of Hamas. What happens is if one argues that IDF may be committing a war crime, then it is turned into but what about Hamas, if you are not a supporter of every action of Israel then you are a terrorist supporting anti-semite. The crimes of Hamas do not justify further crimes. That argument becomes a justification for Hamas actions. That is why I would never make the argument than one crime justifies another.
I also would not dignify the actions of Hamas by calling them a war crime. That implies that there is in some way a war, a legitimate struggle within which crimes have been committed. It implies that for instance Hamas killing active service Israeli military would be a legitimate act of war and those involved in such acts deserve protection under the Geneva convention. I would never make an argument that would in some way legitimise the actions of Hamas.