Yes, if you work you will be get paid until the date you actually worked.

You have to give one month work notice to your employer from the date you submit your resignation.
If you work during your notice period you will be paid until the day you worked, if your employer ask you not to work during your notice period you will not be paid.
Only in cases of termination few employers ask employees not to work but still they get paid their notice period salary as per their contract terms.