Perlin Noise Border Problem

Is it possible so that I can have a border and make the random generation smooth out near it so that blocks don’t just abruptly end at the border, showing everything underneath?

Eh I figured out a way and it doesn’t look that well but whatever

image