Does this function that gets used only once get garbage collected?

local FloaterYLimit = 0.826

local function Constraints() --- This only gets used once
	local ViewportSize = script.Parent.AbsoluteSize -- Yes, I know that ScreenGui.AbsoluteSize is not a ViewportSize
	if ViewportSize.X <= 800 and ViewportSize.Y <= 500 and Players.LocalPlayer.PlayerGui.ScreenOrientation == "LandscapeSensor" then
		FloaterYLimit = 0.75
	end
end

Constraints()

local function foo()
   -- Omitted variables

	if tonumber(y) <= FloaterYLimit then
		return
	end
   -- If the above statement is false continue with script..
end

Does that statement apply to my function?

I recommend using a do block if it’s only going to be executed once

do
    local ViewportSize = script.Parent.AbsoluteSize -- Yes, I know that ScreenGui.AbsoluteSize is not a ViewportSize
    if ViewportSize.X <= 800 and ViewportSize.Y <= 500 and Players.LocalPlayer.PlayerGui.ScreenOrientation == "LandscapeSensor" then
	    FloaterYLimit = 0.75
    end
end

Do blocks is like executing directly but isolates all variables within the block.