Okay well I asked the question but it clearly must be able to, I made a trash can in my house with a bucket of lava. The house is wood and stone but I surrounded the lava with stone above and below and it may or may not have burnt down my house. I am guessing it caught the stairs above it on fire?

Is there any way I can adjust the trash can so it won't burn my house down again or should I just scrap the idea? I wanted to use lava so I could make a lava generator below it with a cauldron, otherwise I would just use a cactus.
Can lava ignite blocks through a trap door? How do I fix this?