There should not be an issue (I’m not aware of one, anyway). The only “tricky” thing that sometimes catches folks out, is that when you regenerate keys and tokens, you need to ensure you refresh the page on apps.twitter.com so that it is showing the new ones, before copying/pasting them into your code.
Which language and Twitter library are you using, and what error are you seeing?