A company cannot refuse your resignation. However, if it has been submitted in the incorrect way they can ask you to resend it.