Possible. But when your really think about it they’d have to have a few things to make it really possible:
1. Reliable knowledge of the general’s movements right down to the minute.
2. A secure back-channel on which to communicate the above travel plans.
3. A pre-established understanding that the United State would act on such intelligence and attack the general & his entourage.
Are all 3 of those thing likely? Probably not.
All 3 are easily possible.
He had a cell phone issued by the Iranian government I’m sure. They know where he is at all times I’m sure.
Back channel and the fact the US would act are plausible