If by "it", you mean removing the dock ---- Sure, you can hide the dock, which will mean that new windows will not be affected by the relative position of the dock.
You can also move the dock to the right or left side of the screen.
Then you will have no need for a gap at the bottom edge.
Or, if you just mean removing the gap, then move the window that slight distance --- gap gone