Is it OK to (mis?)use pins for playing role of GND and VCC? - Sensors ...

Is it OK to (mis?)use pins for playing role of GND and VCC? - Sensors ...