Yes of course this can happen in git as well, as it doesn't know the semantics of the changes it is merging, it only knows about textual conflicts. But if a change applies cleanly it doesn't mean that it necessarily also works, because the other branch might've changed the program logic.
It doesn't happen very often, but it is still worth running integration tests after a merge even if both branches were passing tests on their own.
It doesn't happen very often, but it is still worth running integration tests after a merge even if both branches were passing tests on their own.