Is it a bad idea to exersise if you. Bones start popping in hips and shoulder?

Start exercising. Normal joints do make some popping noises with movement. As long as it is not painful, you can safely ignore those noises and start exercising. The benefits of exercise cannot be overstated. Start slowly and add intensity and volume in a common sense way to avoid injury.
No. Unless they are going out of joint, which i presume they aren;t. A popping noise is common and is not harmful to you and should not keep you from the healthy exercise that you are doing!