Yes we can.
There is whole new branch of biology for this, SYNTHETIC GENOMICS.
Synthetic genomics is a nascent field of synthetic biology, that uses aspects of genetic modification on preexisting life forms or artificial gene synthesis to create a new DNA or entire new life forms.
Craig venter and his team has created new bacteria with synthetic genome. As a summarized article, read: