is there anything illegal about standart deducation for foreign stıdents?

i was a j-1 student last summer , can i get standart deducation on my tax-refund?