Villagers spawning in a structure

I used a structure block with the entity feature enabled, yet the villager didn't transfer over, is it possible to make it so a villager does spawn in a structure?
Continue to help post