Yes it does. And in fact that is the case: The beam has compressed. A fully rigid beam is impossible.