UPanelWidget::ClearChildren Will memory be freed?

I often use UUserWidget::CreateWidget to create a UUserWidget, and then add the new Widget to a UCanvasPanel via UPanelWidget::AddChild. But when I call ClearChildren directly to clean the Widget, does that free up the memory of the widget I created?

Just Like :`
void UMyWidget::CrateMyWidgetFunction()
{
TObjectPtr pMyWidget= CreateWidget(GetWorld(), pMyWidget_BP);
pMyPanel->AddChild(pMyWidget);
}

void UMyWidget::ClearAllWidgetFunction()
{
pMyPanel->ClearChildren();
}
`