Can you still trade the option on the actual expiry date?

Yes, you can trade the option right up until the closing bell on expiry date. However, the liquidity of that option may dry up - meaning since the option is almost expired, there may not be many buyers and sellers to transact with, so it’s best not to wait til the very last minute to try and close out the trade.