Only wall tokens (not broken wall tokens) can be placed in pits. However, a wall placed in a pit can be broken and then function just like a normal land space.