Can be a simple matter of adjusting the cone and locknut on the axle but you did not indicate what kind of hub/bearing/axle etc you have so it does depend on your actual hardware.
Kind of like telling the doctor "I've got an sore finger - do I need a new arm?" i.e. much more information needed to be helpful.