Yes you can do that. Please select the “schedule” under display and select the timerange between which the announcement should be shown.
Note: Right now the announcement will not be marked as inactive after the scheduled date, instead the announcement won’t be displayed at all. I’ll add this to my todo list to make it inactive. But right now it does not make any big difference you can continue to schedule and use the announcement.