yeah, as long as you don't feel groggy...and feel fully awake, its fine.
i don't like to lift after getting up in the morning because it takes 90-120 mins for your CNS to fully wake up after normal 8hours of REM sleep. I find my lifts are weaker early in the morning, compared to mid-morning, or evening.