I am applying a central Finite Difference scheme in space and an implicit Euler scheme in time on a variant of the 2d Burgers equation, of the form:$$u_t + uu_x + uu_y = \nu(u_{xx} + u_{yy})$$ where $u$ is an unknown variable that depends on x,y and t, and $u_t,u_x,u_y$ are the single derivatives of $u$ with respect to t,x and y respectively, and $u_{xx},u_{yy}$ the double derivatives of $u$ with respect to x and y. For this problem, I have inhomogeneous Dirichlet boundary conditions that vary with time. After discretisation, I apply the Newton method to the $u$ vector(calculating Jacobian matrix and value of function at every node for right hand side) at every time step and solve a linear system of equations. The thing is, I do not understand whether I should enforce boundary conditions or not.
My current approach is to enforce boundary conditions at the end of each Newton iteration, that is after I update $u$, and then at the end of each time step. This feels a bit like I am "cheating".
This is a sentiment I noticed in Method of lines for inhomogeneous Dirichlet conditions, but there the approach involves Finite Element method. Sadly, I have very little knowledge in this method and I could not translate the answer there to my problem properly. So to summarise: Is my approach correct? If not, what should usually be done?