I need to maintain it all the time to look properly and sometimes I forget and my shoulders are going forward and my neck

Is there any exercises or sometimes that helps you have a good posture without maintaining it all the time?