Yes, that achieves the same thing but it is better to parent on a new line.
local Part = Instance.new("Part")
Part.Parent = game.Workspace
is better than
local Part = Instance.new("Part", game.Workspace)
Here are some reasons why: PSA: Don't use Instance.new() with parent argument