Get the folder names with full path

I want to store the folder names with full path in a variable, when i use get-childitem -recurse

Something like this then?

$folderPaths = @(Get-ChildItem -Directory -Recurse | Select-Object -ExpandProperty FullName)