The act of sharing your submission with other peers is not necessarily a violation of the Academic Integrity policy; however, if another student submits your assignment as his/her own work, you will face the same consequences as the student who committed plagiarism (i.e., course failure, program withdrawal).
Keep in mind that you violate the Academic Integrity Policy when you upload your submissions on websites where other students can find them.
Needless to say that you commit plagiarism when you submit an assignment already submitted by other students, either in your course or in previous course sessions.