Tinned food - is it healthy enough?

Is it OK to eat only canned foods and no fresh fruit or vegetables?