You can freeze uncooked gnocchi and then thaw them before cooking. As long as they are properly thawed and defrosted then there is no issue with cooking them.