The wall as in the wall of a room? No, any STD dies very quickly once outside a human body. There is no risk for an STD that way.
If there was any other kind of bacteria on the wall, though, like staph or MRSA, you might get that.
It's not something I'd worry about unless you got symptoms. If you have an STD, it's not from the wall.