As I understand it, the Dieppe raid was a practice run for later landing operations, such as those in North Africa and Normandy. There was no intention by the allies to hold Dieppe for very long (maybe one or two days at most).
From what I understand by my very limited reading, the Dieppe raid was a practice run for the D-Day landings and one of the major objectives was to test the feasibility of trying to take a major port during the D Day landings later.
In terms of lessons learned, there were a few, notably: