No question, but if that voice doesn’t jibe with Scripture, the voice was not God.
In my experience, people who say “God told me” to do something are often not the most stable individuals and most often what they are now doing goes against scripture.
That’s how you end up with preachers who are more interested in social justice, churches with a preponderance of unwed mothers etc. God told them it was OK to shack up etc. It’s a slippery slope and one that believers should never go down.
Just don’t blaspheme the Holy Spirit.
The best way to check if somebody is following a flase spirit is to compare what that person says with Scripture.