Yes, there is nothing to worry about.
Rehanaslam93 wrote:
is it possible that some one trying to sign in my id and im getting code for two factor authorisaton? no i also changed my trusted my number from id
Possible, yes. Likely, no. You can verify this by changing your Trusted phone number to something other than your own phone number by following the steps here: ➜ Two-factor authentication for Apple ID - Apple Support
Or it its set to something else, already, then its confirmed nobody is trying to access you account.
Also, it highly recommended that you don't use your own number as a trusted phone number to get 2 Factor Authentication codes. It's suggested you use a different number, that can receive voice calls or SMS messages and that you have access to when you don't have access to your iPhone.