It really depends on the personality of the fish, and the size of the shrimp (when compared to the hawkfish). Some fish will make a meal of shrimp, while others pay little to no attention to them. To reduce the chances of the hawkfish eating the shrimp, make sure the shrimp is much bigger than the fish.
Graham