I do not know. I was asking this because a textbook stated that this could not be possible for some reason and I just realised why. Because of weird spacing, I missed the other part of the sentence which made it incorrect.
The other part is "he tried to get her attention" which lacks a linking word.