Freezing potatoes

Can I freeze scalloped potatoes, cooked or uncooked?