You can, by using the command: /summon minecraft:villager ~ ~ ~ {NoAI:1} this
/summon minecraft:villager ~ ~ ~ {NoAI:1}
This prevents the villager from walking and looking around maybe. Maybe this is not what you want but I use it in maps very often