Can you use spawn using relative location

When I use the spawn behavior it always asks for specific coordinates. Is there a way to spawn something in using location away from the block?

Ex:
I place a block down and want another block to spawn above it. I would then make the block spawn one block above the block, no matter the location.

You can use the Extractor block to get the current block’s position, and then add an offset to that value to use for your spawn position.

Do I take the current y value with one extractor and link it to the y position for the spawner and do the same thing with the x?

Yes, although you may want to use an Expression to add an offset if you want to spawn somewhere other than directly on top of the current block.