I have recently diagnose if mild scoliosis. And I sometimes have a back pain. Can I still go to the gym and lift weights that I can manage?

No reason not to. Depends on the extent of the scoliosis and your age. You can discuss this with your physiciasn and if necessary see a scoliosis expert. Many people have mild scolisois and it causes them no problems.