I'm sure this is very possible.
No way I'll be selling mine on exdate or later.
But be warned the shares you buy on Tuesday and sell on Wednesday are no guarantee you will get your entitlement.
Seems to me even the smarties don't know.
Take a chance and get caught out.