Yes, you can use the same variable name in different scopes as long as they are not nested. If you have nested scopes, you will need to use different variable names to avoid conflicts.