metasploit – generate vs msfvenom

So, I needed to generate a windows/shell_bind_tcp payload in ruby.

Method 1:

msf6 > use payload/windows/shell_bind_tcp
msf6 payload(windows/shell_bind_tcp) > generate 

Method 2:

root@kali:~# msfvenom -p windows/shell_bind_tcp -f ruby

Are they doing pretty much the same thing?