Yes, you can change the value of a variable inside a Python function. However, if the variable is defined outside the function, it will remain unchanged.