Yes that's possible, but not officially.
You can login to the google play website from code and simulate a button click there. This is a sample application doing exactly that, including login via device's google account. I don't know if it's still working, cause it's build against the old google play website, but I assume the source code could be helpful anyways (documentation is in japanese, use google translate for that).