Yes, if you get on your toes immediately after the wedding.
You need to apply for the FLR - Further Leave to Remain (see the various threads on this).
As long as you submit the application BEFORE your original visa expires, you'll be fine.
If you're very near the date, I suggest you send by registered post, so will have proof of date of submission