Yes, you can. The gelatin in the Panna Cotta starts to set as soon as you place it in the fridge. A trick I use is to freeze my shortcrust in the freezer an hour before I pour the milk mixture. The cold pastry instantly sets the mixture that hits the tart shell.