Yes it does but velocity is what makes the difference as to it's ability to be dangerous. If everybody is lined up against the wall in the neighboring apartment (or room) and the tester shoots through the wall on the opposite side about a foot away, then yes either would be dangerous to whatever is up against that wall. But that doesn't make them "equally" dangerous.
A 9mm will penetrate a sandbag deeper than a 233, the high velocity becomes it's own worst enemy