Yes, I strongly recommend poking holes in sweet potatoes before baking or boiling them. Besides preventing them from bursting, this practice ensures even cooking.