Only allow numbers in a currency field

Can this be done to avoid accidental entry of letters or other ASCII characters?