If you stay in the US after your visa expires, it will affect your legal stay in the US. Your visa will be considered ‘Out of Status’ once it expires, meaning that your student status will no longer be valid. Once you are caught and deported, you will not be allowed to enter the US again in future.