It is totally okay, if they need to occupy the middle lane.
Truck drivers are running a commercial operation, I shouldn’t have to be inconvenienced so they can more easily make money - especially not when that inconvenience is caused by them not following the rules of the road.
Sometimes even the left lane.
This may be illegal, depending on jurisdiction and circumstances.