Both options are viable, but it is generally better to freeze meatloaf before cooking as it helps maintain its texture and juiciness, and allows for convenient meal preparation by cooking it when needed.