Halley is right.
Analog Inputs are sensible, and will show oscillating values if not connected. This canĀ“t cause problems if the pins are not described/included as input in your sketch. But you can stabilize pin values just connecting pull up or pull down resistors to them.