Yes you can buy tomorrow and sell on the 16th. On the 16th it trades without the dividend attached, hence it's EX Dividend Date.