It's "possible", but it's very very very rare. In fact, there are only two known substances that can contract when their temperature increases.
One of them is water. When water warms from 0°C to 4°C, it contracts.
I can't remember what the other substance is.