Yes, however can go in the middle of a sentence as a connecting adverb and in this case if the two parts are stand-alone sentences, you should put a comma after it and a semicolon before it .
ex:
He went to bed early; however, he didn’t get much sleep.