Some fish are always shy, i.e. black skirt tetras. Others, i.e. bettas and livebearers, come to the top to feed whenever someone comes to the tank.
It all depends on how long you've had the fish, how stressed out the are, how your tank is set up, and what type of fish you have.